<template>
  <div>
     <div class="nav">
        <router-link to="/discover">发现音乐</router-link>
        <router-link to="/my">我的音乐</router-link>
        <router-link to="/friend">关注</router-link>
     </div>
     <!-- 路由出口 只是给1级用的 -->
     <router-view />
  </div>
</template>

<script>
  export default {

  }
</script>

<style scoped>

.nav {
  height: 56px;
  background-color: #242424;
  display: flex;
}

.nav a {
  flex: 1;
  text-align: center;
  line-height: 56px;
  text-decoration: none;
  color: #fff;
}

.nav a.router-link-active {
  color: #f00;
}

</style>